//
//  JBWTempViewController.swift
//  新浪微博
//
//  Created by 季伯文 on 2017/6/29.
//  Copyright © 2017年 bowen. All rights reserved.
//

import UIKit

class JBWTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
    }
    
    @objc private func pushClick(){
        let tempVC = JBWTempViewController()
        navigationController?.pushViewController(tempVC, animated: true)
        
    }
    
    private func setupUI(){
        view.backgroundColor = UIColor.white
    }
    
    private func setupNav(){
        
        navigationItem.title = "第\(navigationController?.childViewControllers.count ?? 0)个控制器"
        navigationItem.rightBarButtonItem = UIBarButtonItem(imgName:nil, title: "PUSH", target:self, action:#selector(pushClick))
    }

}
